package com.sdgs.app.utils;

/**
 * 所有的返回码。
 */
public enum AppResultCode {
    SUCCESS(100000, "成功"),
    FAIL(100001, "失败"),
    SIGN_FAIL(100002, "sign校验失败"),
    ACCESSTOKEN_FAIL(100003, "accessToken校验失败"),
    HEADERVALIDATE_FAIL(100004, "header数据校验失败"),
    TIMESTAMP_FAIL(100005, "timestamp超时"),
    SYSVERSION_FAIL(100006, "APP版本错误"),
    BODYVALIDATE_FAIL(100007, "业务数据校验失败");

    private int code;
    private String msg;

    private AppResultCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
    public int getCode() {
        return code;
    }
    public String getMsg() {
        return msg;
    }
}

